package com.my.socket.bio.v11;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Created by ZhongGang
 * at 2018/7/10 15:42
 */
public class Server {
    private static final Logger LOGGER = LoggerFactory.getLogger(Server.class);

    public static void main(String[] args) throws Exception {
        ServerSocket serverSocket = new ServerSocket();
        InetSocketAddress inetSocketAddress = new InetSocketAddress("127.0.0.1", 9999);
        serverSocket.bind(inetSocketAddress, 5);

        while (true) {
//            Socket socket = serverSocket.accept();
//            LOGGER.info("incoming socket: {}", socket);

        }
    }
}
